/*该文件专门用于暴露一个store对象*/
//引入createStore，专门创建用于redux中最核心的store
import {createStore, applyMiddleware, combineReducers} from 'redux'
import countReducer from './reducers/count'
import personReducer from './reducers/person'
import thunk from "redux-thunk";
import {composeWithDevTools} from "redux-devtools-extension";
//暴露
export default createStore(
    //汇总reducer
    combineReducers({
        he: countReducer,
        ren: personReducer
    }), composeWithDevTools(applyMiddleware(thunk))
)